package org.aurora.daily;

import org.springframework.stereotype.Component;

import java.util.Random;
import java.util.concurrent.Callable;

/**
 * @author : qiaodan
 * @date : 2024/8/27 09:19
 * @description TODO the method is used to
 */
@Component
public class MyCallable implements Callable<String> {
    @Override
    public String call(){
        Thread thread = Thread.currentThread();
        System.out.println(thread.getName()+" 线程运行中。。。");
        Random random = new Random();
        return  thread.getName()+"-"+random.nextInt(5);
    }
}
